package com.fiveGroup.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fiveGroup.pojo.UserFavoriteProduct;
import com.fiveGroup.pojo.vo.ProductFavoriteVo;

import java.util.List;

/**
 * @author 86188
 * @description 针对表【user_favorite_product(用户商品收藏表)】的数据库操作Service
 * @createDate 2025-09-26 15:01:12
 */
public interface UserFavoriteProductService extends IService<UserFavoriteProduct> {

    int getFavoriteCount(Long userId, Long productId);

    List<ProductFavoriteVo> getFavorite(IPage<ProductFavoriteVo> page, QueryWrapper<UserFavoriteProduct> queryWrapper);

}
